import sys
import os

file_path = os.path.abspath(__file__)
end = file_path.index('qmt_auto_trade') + 17
project_path = file_path[0:end]
sys.path.append(project_path)

from enum import Enum

'''
操作类型枚举
'''


class OperateEnum(Enum):
    BUY = ('buy', '买入')
    SELL = ('sell', '卖出')
    CANCEL = ('cancel', '取消')

    def __init__(self, operate_code, operate_name):
        self.operate_code = operate_code
        self.operate_name = operate_name
